import React from 'react';
import {Divider} from 'antd';
import Header from '../component/header/Header'
import Login from '../component/login/Login'
import ForgetPassword from '../component/login/ForgetPassword'
import './index.css'
export default class LoginList extends React.Component{
    render() {
        let forgetLogin;
        if(this.props.match.params.type === '1'){
            forgetLogin = (<Login/>)
        }else{
            forgetLogin = (<ForgetPassword/>)
        }
        return (
            <div className='loginList' style = {{backgroundColor:"#fff"}}>
                <Header/>
                <Divider />
                {forgetLogin}
            </div>
        )
    }
}